<template>
  <div class="setting">
    <!-- 靶标分组 -->
    <div class="bbfz" v-show="goset">
      <div class="addbtn" @click="bbadd()">新增</div>
      <div class="tables">
        <el-table
          :data="bbtableData"
          :header-cell-style="{ background: 'rgba(40, 94, 117,0.8)' }"
          height="100%"
          :row-class-name="tableRowClassName"
        >
          <el-table-column prop="bbgroupname" label="分组名称" width="180">
          </el-table-column>
          <el-table-column label="操作">
            <template slot-scope="scope">
              <el-button
                size="mini"
                @click="handleEdit(scope.$index, scope.row)"
                >编辑</el-button
              >
              <el-button
                size="mini"
                type="danger"
                @click="handleDelete(scope.$index, scope.row)"
                >删除</el-button
              >
              <!-- <el-button
                size="mini"
                type="info"
                @click="handleDelete(scope.$index, scope.row)"
                >查看</el-button
              > -->
            </template>
          </el-table-column>
        </el-table>
        <!-- 弹窗 -->
        <el-dialog
          title="修改分组名"
          :visible.sync="dialogFormVisible"
          width="400px"
        >
          <el-form :model="bbform">
            <el-form-item label="分组名称" :label-width="formLabelWidth">
              <el-input v-model="bbform.name" autocomplete="off"></el-input>
            </el-form-item>
          </el-form>
          <div slot="footer" class="dialog-footer">
            <el-button @click="dialogNone()">取 消</el-button>
            <el-button type="primary" @click="dialogSave()">确 定</el-button>
          </div>
        </el-dialog>
      </div>
    </div>
    <!-- 靶车分组 -->
    <div class="bcfz" v-show="goset">
      <div class="addbtn" @click="bcadd()">新增</div>
      <div class="tables">
        <el-table
          :data="bctableData"
          :header-cell-style="{ background: 'rgba(7, 143, 120, 0.5)' }"
          style="width: 100%"
          height="100%"
          :row-class-name="tableRowClassName1"
        >
          <el-table-column prop="bcgroupname" label="分组名称" width="180">
          </el-table-column>
          <el-table-column label="操作">
            <template slot-scope="scope">
              <el-button
                size="mini"
                @click="handleEdit2(scope.$index, scope.row)"
                >编辑</el-button
              >
              <el-button
                size="mini"
                type="danger"
                @click="handleDelete2(scope.$index, scope.row)"
                >删除</el-button
              >
              <!-- <el-button
                size="mini"
                type="info"
                @click="handleDelete2(scope.$index, scope.row)"
                >查看</el-button
              > -->
            </template>
          </el-table-column>
        </el-table>
        <!-- 弹窗 -->
        <el-dialog
          title="修改分组名"
          :visible.sync="dialogFormVisible"
          width="400px"
        >
          <el-form :model="bcform">
            <el-form-item label="分组名称" :label-width="formLabelWidth">
              <el-input v-model="bcform.name" autocomplete="off"></el-input>
            </el-form-item>
          </el-form>
          <div slot="footer" class="dialog-footer">
            <el-button @click="dialogNone">取 消</el-button>
            <el-button type="primary" @click="dialogSave()">确 定</el-button>
          </div>
        </el-dialog>
      </div>
    </div>
    <!-- 选择靶标靶车添加 -->
    <div class="add" v-show="!goset">
      <!-- 靶标盒子 -->
      <div class="bbbox" v-show="gobb">
        <div class="add-title">
          <img src="../assets/img/add/choosebb.png" alt="" />
        </div>
        <div class="left-title">
          <div
            class="item"
            v-for="(item, index) in setList"
            :key="item.id"
            @click="changebb(index)"
            :class="bbid === index ? 'active' : ''"
          >
            {{ item.name }}
          </div>
        </div>
        <!-- 详情 -->

        <div class="left-box">
          <!-- 切换 -->
          <!-- 外层盒子 -->
          <div class="box">
            <div
              v-show="isOne"
              class="box-item"
              v-for="(item, index) in chooseMsg"
              @click.once="choosebb(index, item)"
              :class="{ liang: setArr1.includes(index) }"
              :key="item.id"
            >
              {{ item.name }}
            </div>
          </div>
          <div class="box">
            <div
              v-show="isTwo"
              class="box-item"
              v-for="(item, index) in chooseMsg2"
              @click.once="choosebb(index, item)"
              :class="{ liang: setArr2.includes(index) }"
              :key="item.id"
            >
              {{ item.name }}
            </div>
          </div>
          <div class="box">
            <div
              v-show="isThr"
              class="box-item"
              v-for="(item, index) in chooseMsg3"
              @click.once="choosebb(index, item)"
              :class="{ liang: setArr3.includes(index) }"
              :key="item.id"
            >
              {{ item.name }}
            </div>
          </div>
          <div class="box">
            <div
              v-show="isFour"
              class="box-item"
              v-for="(item, index) in chooseMsg4"
              @click.once="choosebb(index, item)"
              :class="{ liang: setArr4.includes(index) }"
              :key="item.id"
            >
              {{ item.name }}
            </div>
          </div>
          <div class="box">
            <div
              v-show="isFive"
              class="box-item"
              v-for="(item, index) in chooseMsg5"
              @click.once="choosebb(index, item)"
              :class="{ liang: setArr5.includes(index) }"
              :key="item.id"
            >
              {{ item.name }}
            </div>
          </div>
          <div class="box">
            <div
              v-show="isSix"
              class="box-item"
              v-for="(item, index) in chooseMsg6"
              @click.once="choosebb(index, item)"
              :class="{ liang: setArr6.includes(index) }"
              :key="item.id"
            >
              {{ item.name }}
            </div>
          </div>
          <div class="box">
            <div
              v-show="isEve"
              class="box-item"
              v-for="(item, index) in chooseMsg7"
              @click.once="choosebb(index, item)"
              :class="{ liang: setArr7.includes(index) }"
              :key="item.id"
            >
              {{ item.name }}
            </div>
          </div>
        </div>
        <div class="left-choose">
          <div class="ch-title">已选择：</div>
          <!-- 选中框1 -->
          <div class="ch-save">
            <p>
              侧转靶：<span>{{ showbbmsg1 }}</span>
            </p>

            <p>
              升降靶：<span>{{ showbbmsg2 }}</span>
            </p>
            <p>
              凸显靶：<span>{{ showbbmsg3 }}</span>
            </p>
            <p>
              摇摆靶：<span>{{ showbbmsg4 }}</span>
            </p>
            <p>
              起倒靶：<span>{{ showbbmsg5 }}</span>
            </p>
            <p>
              多功能靶：<span>{{ showbbmsg6 }}</span>
            </p>

            <p>
              多靶型：<span>{{ showbbmsg7 }}</span>
            </p>
          </div>
        </div>
        <div class="add-title">
          <img src="../assets/img/add/fzmc.png" alt="" />
        </div>
        <!-- 输入框 -->
        <el-input placeholder="请您输入分组的名称" v-model="input3" clearable>
        </el-input>
        <div class="btnbox">
          <div class="saves" @click="save()">
            <img src="../assets/img/add/saves.png" alt="" />
          </div>
          <div class="none" @click="none()">
            <img src="../assets/img/add/none.png" alt="" />
          </div>
        </div>
      </div>

      <!-- 选择靶车添加 -->
      <div class="bcbox" v-show="gobc">
        <div class="add-title">
          <img src="../assets/img/add/choosebc.png" alt="" />
        </div>
        <div class="left-title">
          <div
            class="item"
            v-for="(item, index) in setList2"
            :key="item.id"
            @click="changebc(index)"
            :class="bcid === index ? 'active' : ''"
          >
            {{ item.name }}
          </div>
        </div>
        <!-- 详情 -->
        <div class="left-box">
          <!-- 切换 -->
          <div class="box">
            <div
              v-show="isEight"
              class="box-item"
              v-for="(item, index) in chooseMsg8"
              @click.once="choosebc(index, item)"
              :class="{ liang: item.isChoose }"
              :key="item.id"
            >
              {{ item.name }}
            </div>
          </div>
          <div class="box">
            <div
              v-show="isNight"
              class="box-item"
              v-for="(item, index) in chooseMsg9"
              @click.once="choosebc(index, item)"
              :class="{ liang: item.isChoose }"
              :key="item.id"
            >
              {{ item.name }}
            </div>
          </div>
          <div class="box">
            <div
              v-show="isTen"
              class="box-item"
              v-for="(item, index) in chooseMsg10"
              @click.once="choosebc(index, item)"
              :class="{ liang: item.isChoose }"
              :key="item.id"
            >
              {{ item.name }}
            </div>
          </div>
        </div>
        <div class="left-choose">
          <div class="ch-title">已选择：</div>
          <!-- 选中框1 -->
          <div class="ch-save">
            <p>
              侧转靶：<span>{{ showbcmsg1 }}</span>
            </p>

            <p>
              起倒靶：<span>{{ showbcmsg2 }}</span>
            </p>
            <p>
              升降靶：<span>{{ showbcmsg3 }}</span>
            </p>
          </div>
        </div>
        <div class="add-title">
          <img src="../assets/img/add/fzmc.png" alt="" />
        </div>
        <!-- 输入框 -->
        <el-input placeholder="请您输入分组的名称" v-model="input3" clearable>
        </el-input>
        <div class="btnbox">
          <div class="saves" @click="save()">
            <img src="../assets/img/add/saves.png" alt="" />
          </div>
          <div class="none" @click="none()">
            <img src="../assets/img/add/none.png" alt="" />
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "Set",
  data() {
    return {
      // 弹窗
      dialogFormVisible: false,
      bbform: {
        name: "",
      },
      bcform: {
        name: "",
      },
      formLabelWidth: "90px",
      bbtableData: [
        {
          bbgroupname: "2016-05-04",
        },
        {
          bbgroupname: "2016-05-01",
        },

        {
          bbgroupname: "2016-05-02",
        },
        {
          bbgroupname: "2016-05-04",
        },
        {
          bbgroupname: "2016-05-01",
        },
      ],
      bctableData: [
        {
          bcgroupname: "2016-05-04",
        },
        {
          bcgroupname: "2016-05-01",
        },

        {
          bcgroupname: "2016-05-02",
        },
        {
          bcgroupname: "2016-05-04",
        },
        {
          bcgroupname: "2016-05-01",
        },
      ],
      // 显示设置页面
      goset: true,
      // 显示靶标
      gobb: true,
      // 显示靶场
      gobc: false,
      // 添加
      bbid: 0,
      bcid: 0,
      // 靶标标题数组
      setList: [
        {
          id: 0,
          name: "侧转靶",
        },
        {
          id: 1,
          name: "起倒靶",
        },
        {
          id: 2,
          name: "升降靶",
        },
        {
          id: 3,
          name: "凸显靶",
        },
        {
          id: 4,
          name: "摇摆靶",
        },
        {
          id: 5,
          name: "多功能靶",
        },
        {
          id: 6,
          name: "多靶型",
        },
      ],
      // 靶车标题数组
      setList2: [
        {
          id: 0,
          name: "侧转靶",
        },
        {
          id: 1,
          name: "起倒靶",
        },
        {
          id: 2,
          name: "升降靶",
        },
      ],
      // 靶子显示与隐藏
      isOne: true,
      isTwo: false,
      isTwo: false,
      isThr: false,
      isFour: false,
      isFive: false,
      isSix: false,
      isEve: false,
      isEight: true,
      isNight: false,
      isTen: false,
      // 靶子详情
      chooseMsg: [
        {
          id: 1,
          name: "标靶1",
        },
        {
          id: 2,
          name: "标靶2",
        },
        {
          id: 3,
          name: "标靶3",
        },
        {
          id: 4,
          name: "标靶4",
        },
      ],
      chooseMsg2: [
        {
          id: 1,
          name: "起倒靶1",
        },
      ],
      chooseMsg3: [
        {
          id: 1,
          name: "升降靶1",
        },
      ],
      chooseMsg4: [
        {
          id: 1,
          name: "凸显靶1",
        },
      ],
      chooseMsg5: [
        {
          id: 4,
          name: "摇摆靶1",
        },
      ],
      chooseMsg6: [
        {
          id: 1,
          name: "多功能靶1",
        },
      ],
      chooseMsg7: [
        {
          id: 1,
          name: "多靶1",
        },
      ],
      chooseMsg8: [
        {
          id: 1,
          name: "多靶1",
        },
        {
          id: 2,
          name: "多靶2",
        },
        {
          id: 3,
          name: "多靶3",
        },
      ],
      chooseMsg9: [
        {
          id: 1,
          name: "多靶9",
        },
      ],
      chooseMsg10: [
        {
          id: 1,
          name: "多靶10",
        },
      ],
      //子选项选中数组
      setArr1: [],
      setArr2: [],
      setArr3: [],
      setArr4: [],
      setArr5: [],
      setArr6: [],
      setArr7: [],

      input3: "",
      // 靶标添加界面选中数据
      addbbList: [
        { id: 1, name: [] },
        { id: 2, name: [] },
        { id: 3, name: [] },
        { id: 4, name: [] },
        { id: 5, name: [] },
        { id: 6, name: [] },
        { id: 7, name: [] },
      ],
      // 靶标客户端显示选中
      showbbmsg1: "",
      showbbmsg2: "",
      showbbmsg3: "",
      showbbmsg4: "",
      showbbmsg5: "",
      showbbmsg6: "",
      showbbmsg7: "",
      // 靶车添加界面选中数据
      addbcList: [
        { id: 1, name: [] },
        { id: 2, name: [] },
        { id: 3, name: [] },
      ],
      // 靶标客户端显示选中
      showbcmsg1: "",
      showbcmsg2: "",
      showbcmsg3: "",
    };
  },
  components: {},
  mounted() {
    for (let i = 0; i < this.chooseMsg8.length; i++) {
      this.chooseMsg8[i].isChoose = false;
    }
    for (let i = 0; i < this.chooseMsg9.length; i++) {
      this.chooseMsg9[i].isChoose = false;
    }
    for (let i = 0; i < this.chooseMsg10.length; i++) {
      this.chooseMsg10[i].isChoose = false;
    }
  },
  methods: {
    // 第一个表格
    tableRowClassName({ row, rowIndex }) {
      if (rowIndex % 2 === 0) {
        return "warning-row";
      } else if (rowIndex % 2 === 1) {
        return "success-row";
      }
      return "";
    },
    // 第二个表格
    tableRowClassName1({ row, rowIndex }) {
      if (rowIndex % 2 === 0) {
        return "two-row";
      } else if (rowIndex % 2 === 1) {
        return "suc-row";
      }
      return "";
    },
    // 弹窗
    dialogSave() {
      // this.form.name =
      // let a = sessionStorage.getItem("item");
      // console.log(a);
      // this.bbtableData.bbgroupname[a] = this.form.name
      this.dialogFormVisible = false;
    },
    dialogNone() {
      this.dialogFormVisible = false;
    },
    //获取查询行
    handleEdit(index, row) {
      console.log(index, row);
      this.dialogFormVisible = true;
      // this.bbform.name = row.bbgroupname;
      // sessionStorage.setItem("item", index);
    },
    handleDelete(index, row) {
      console.log(index, row);
    },
    handleEdit2(index, row) {
      console.log(index, row);
      this.dialogFormVisible = true;
    },
    handleDelete2(index, row) {
      console.log(index, row);
    },
    // 靶标新增按钮
    bbadd() {
      this.gobb = true;
      this.goset = this.gobc = false;
    },
    // 靶车新增按钮
    bcadd() {
      this.gobc = true;
      this.goset = this.gobb = false;
    },

    // 靶标标题选择
    changebb(index) {
      // console.log(index);
      this.bbid = index;
      if (index === 0) {
        this.isOne = true;
        this.isTwo =
          this.isThr =
          this.isFour =
          this.isFive =
          this.isSix =
          this.isEve =
            false;
      } else if (index === 1) {
        this.isTwo = true;
        this.isOne =
          this.isThr =
          this.isFour =
          this.isFive =
          this.isSix =
          this.isEve =
            false;
      } else if (index === 2) {
        this.isThr = true;
        this.isOne =
          this.isTwo =
          this.isFour =
          this.isFive =
          this.isSix =
          this.isEve =
            false;
      } else if (index === 3) {
        this.isFour = true;
        this.isOne =
          this.isThr =
          this.isTwo =
          this.isFive =
          this.isSix =
          this.isEve =
            false;
      } else if (index === 4) {
        this.isFive = true;
        this.isOne =
          this.isThr =
          this.isFour =
          this.isTwo =
          this.isSix =
          this.isEve =
            false;
      } else if (index === 5) {
        this.isSix = true;
        this.isOne =
          this.isThr =
          this.isFour =
          this.isFive =
          this.isTwo =
          this.isEve =
            false;
      } else if (index === 6) {
        this.isEve = true;
        this.isOne =
          this.isThr =
          this.isFour =
          this.isFive =
          this.isSix =
          this.isTwo =
            false;
      }
    },
    // 靶车标题选择
    changebc(index) {
      // console.log(index);
      this.bcid = index;
      if (index === 0) {
        this.isEight = true;
        this.isNight = this.isTen = false;
      } else if (index === 1) {
        this.isNight = true;
        this.isEight = this.isTen = false;
      } else {
        this.isTen = true;
        this.isNight = this.isEight = false;
      }
    },
    // 点击选择子项
    choosebb(i, item) {
      if (this.bbid === 0) {
        if (this.setArr1.includes(i)) {
          this.setArr1 = this.setArr1.filter(function (ele) {
            return ele != i;
          });
        } else {
          this.setArr1.push(i);
          this.showbbmsg1 = this.showbbmsg1 + item.name + "、";
          this.addbbList[0].name.push(item.name);
          // console.log(this.addbbList);
        }
      } else if (this.bbid === 1) {
        if (this.setArr2.includes(i)) {
          this.setArr2 = this.setArr2.filter(function (ele) {
            return ele != i;
          });
        } else {
          this.setArr2.push(i);
          this.showbbmsg2 = this.showbbmsg2 + item.name + "、";
          this.addbbList[1].name.push(item.name);
          console.log(this.setArr2);
        }
      } else if (this.bbid === 2) {
        if (this.setArr3.includes(i)) {
          this.setArr3 = this.setArr3.filter(function (ele) {
            return ele != i;
          });
        } else {
          this.setArr3.push(i);
          this.showbbmsg3 = this.showbbmsg3 + item.name + "、";
          this.addbbList[2].name.push(item.name);
          console.log(this.setArr3);
        }
      } else if (this.bbid === 3) {
        if (this.setArr4.includes(i)) {
          this.setArr4 = this.setArr4.filter(function (ele) {
            return ele != i;
          });
        } else {
          this.setArr4.push(i);
          this.showbbmsg4 = this.showbbmsg4 + item.name + "、";
          this.addbbList[3].name.push(item.name);
          console.log(this.setArr4);
        }
      } else if (this.bbid === 4) {
        if (this.setArr5.includes(i)) {
          this.setArr5 = this.setArr5.filter(function (ele) {
            return ele != i;
          });
        } else {
          this.setArr5.push(i);
          this.showbbmsg5 = this.showbbmsg5 + item.name + "、";
          this.addbbList[4].name.push(item.name);
          console.log(this.setArr5);
        }
      } else if (this.bbid === 5) {
        if (this.setArr6.includes(i)) {
          this.setArr6 = this.setArr6.filter(function (ele) {
            return ele != i;
          });
        } else {
          this.setArr6.push(i);
          this.showbbmsg6 = this.showbbmsg6 + item.name + "、";
          this.addbbList[5].name.push(item.name);
          console.log(this.setArr6);
        }
      } else {
        if (this.setArr7.includes(i)) {
          this.setArr7 = this.setArr7.filter(function (ele) {
            return ele != i;
          });
        } else {
          this.setArr7.push(i);
          this.showbbmsg7 = this.showbbmsg7 + item.name + "、";
          this.addbbList[6].name.push(item.name);
          console.log(this.setArr7);
        }
      }
      // console.log(this.addbbList);
    },
    choosebc(i, item) {
      if (this.bcid === 0) {
        item.isChoose = true;
        this.showbcmsg1 = this.showbcmsg1 + item.name + "、";
        this.addbcList[0].name.push(item.name);
      } else if (this.bcid === 1) {
        item.isChoose = true;
        this.showbcmsg2 = this.showbcmsg2 + item.name + "、";
        this.addbcList[1].name.push(item.name);
      } else {
        item.isChoose = true;
        this.showbcmsg3 = this.showbcmsg3 + item.name + "、";
        this.addbcList[2].name.push(item.name);
      }
      console.log(this.addbcList);
    },

    save() {
      this.goset = true;
    },
    none(){
      return
    }
  },
};
</script>
<style>
/* 添加背景色 */
.el-table .warning-row {
  background: transparent !important;
}

.el-table .success-row {
  background: rgba(40, 94, 117, 0.2) !important;
}
.el-table .two-row {
  background: transparent !important;
}

.el-table .suc-row {
  background: rgba(7, 143, 120, 0.2) !important;
}
</style>

<style scoped lang="less">
.setting {
  margin: 100px 20px 0 10px;
  flex: 1;
  height: 88vh;
  display: flex;
  justify-content: space-between;

  // background-color: aqua;
  .bbfz {
    width: 49%;
    height: 100%;
    background-image: url("../assets/img/set/bbfz.png");
    background-size: 100% 100%;
    .tables {
      width: 90%;
      height: 68vh;
      overflow-y: auto;
      margin: 30px auto 0;
      //   修改透明背景
      /deep/ .el-table,
      /deep/ .el-table th,
      /deep/ .el-table tr,
      /deep/ .el-table td {
        background-color: transparent;
        color: #fff;
      }
      //   取消表格内行下边框
      /deep/ .el-table td.el-table__cell {
        border: none;
      }
      //   取消表头下边框
      /deep/ .el-table th.el-table__cell.is-leaf {
        border: none;
      }
      /deep/ .el-table--border {
        border: none;
      }
      // 取消最底下下边框
      /deep/ .el-table::before {
        left: 0;
        bottom: 0;
        width: 100%;
        height: 0px;
      }
      //   修改按钮间距
      /deep/ .el-button--mini {
        margin-right: 50px;
      }
    }
  }
  .bcfz {
    width: 49%;
    height: 100%;
    background-image: url("../assets/img/set/bcfz.png");
    background-size: 100% 100%;
    .tables {
      width: 90%;
      height: 68vh;
      overflow-y: auto;
      margin: 30px auto 0;
      //   修改透明背景
      /deep/ .el-table,
      /deep/ .el-table th,
      /deep/ .el-table tr,
      /deep/ .el-table td {
        background-color: transparent;
        color: #fff;
      }
      //   取消表格内行下边框
      /deep/ .el-table td.el-table__cell {
        border: none;
      }
      //   取消表头下边框
      /deep/ .el-table th.el-table__cell.is-leaf {
        border: none;
      }
      /deep/ .el-table--border {
        border: none;
      }
      // 取消最底下下边框
      /deep/ .el-table::before {
        left: 0;
        bottom: 0;
        width: 100%;
        height: 0px;
      }
      //   修改按钮间距
      /deep/ .el-button--mini {
        margin-right: 50px;
      }
    }
  }
  .addbtn {
    width: 80px;
    height: 30px;
    background-color: aqua;
    margin-left: 85%;
    margin-top: 11%;
    border-radius: 3px;
    text-align: center;
    line-height: 30px;
    background: linear-gradient(0deg, #1d577c, rgba(29, 87, 124, 0));
    border: 1px solid #00ccff;
    color: #fff;
    cursor: pointer;
    // outline: 1px solid #00CCFF;
  }
}
@media screen and (max-width: 1300px) {
  .setting {
    margin: 60px 10px 0 6px;
    flex: 1;
    height: 87vh;
    display: flex;
    justify-content: space-between;

    // background-color: aqua;
    .bbfz {
      // background-color: aqua !important;

      .tables {
        width: 90%;
        height: 62vh;
        overflow-y: auto;
        margin: 20px auto 0;

        //   修改按钮间距
        /deep/ .el-button--mini {
          margin-right: 30px !important;
        }
      }
    }
    .bcfz {
      .tables {
        width: 90%;
        height: 62vh;
        overflow-y: auto;
        margin: 20px auto 0;

        //   修改按钮间距
        /deep/ .el-button--mini {
          margin-right: 30px !important;
        }
      }
    }
    .addbtn {
      margin-left: 74%;
    }
  }
}
</style>
<style scoped lang="less">
.add {
  //   margin: 110px 20px 0 10px;
  flex: 1;
  height: 86vh;

  .add-title {
    width: 150px;
    height: 40px;
    margin-left: 50px;
    margin-top: 20px;

    img {
      width: 100%;
      height: 100%;
    }
  }
  .left-title {
    width: 60%;
    height: 30px;
    margin: 20px 0 20px 50px;
    //   background-color: red;
    display: flex;
    justify-content: space-between;
    //   line-height: 40px;
    .item {
      font-size: 14px;
      padding: 6px 20px;
      color: #fff;
      text-align: center;
      cursor: pointer;
      overflow: hidden;
    }

    .active {
      background-image: url("../assets/img/index/tabs.png");
      background-size: 100% 100%;
    }
  }
  .bcbox .left-title {
    width: 25% !important;
  }
  .left-box {
    width: 95%;
    height: 250px;
    margin: 10px auto 0;
    overflow-y: auto;
    // background-color: #1d577c;
    // display: flex;
    // flex-wrap: wrap;
    .box {
      width: 100%;
      display: flex;
      flex-wrap: wrap;
      overflow-y: auto;
    }
    .box-item {
      width: 100px;
      height: 40px;
      text-align: center;
      line-height: 40px;
      margin-left: 13px;
      word-wrap: break-word;
      color: #fff;
      background-image: url("../assets/img/add/no.png");
      background-size: 100% 100%;
      cursor: pointer;
      // background-color: #00ccff;
    }

    .liang {
      background-image: url("../assets/img/add/yes.png") !important;
    }
  }
  .left-choose {
    width: 90%;
    height: 150px;
    margin: 10px 30px 0 50px;
    background: linear-gradient(
      0deg,
      rgba(209, 133, 66, 0.4),
      rgba(209, 147, 66, 0.05)
    );
    border: 1px solid #ff9752;
    position: relative;
    // outline: 5px solid #40f8d8;
    .ch-title {
      height: 20px;
      line-height: 20px;
      padding-left: 5px;
      margin: 3px 0 0 5px;
      border-left: 4px solid #ff9752;
      color: #ff9752;
    }
    .ch-save {
      width: 95%;
      height: 75%;
      margin: 5px auto 0;
      overflow-y: auto;
      // background-color: red;
      p {
        color: #ff9752;
        span {
          color: #fff;
        }
      }
    }
  }
  /deep/ .el-input {
    width: 300px;
    height: 40px;
    margin-left: 3%;
    margin-top: 30px;
    // border: #00CCFF ;
  }
  // 修改输入框样式
  /deep/ .el-input__inner {
    height: 40px;
    font-size: 16px;
    color: #fff;
    border: #ff9752;

    line-height: 0px;
    background: linear-gradient(0deg, #1d577c, rgba(29, 87, 124, 0));
  }
  /deep/ input::placeholder {
    font-size: 14px;
  }
  // 修改清空按钮
  /deep/ .el-input__suffix {
    padding: 0;
    // margin: 0;
    // margin-top: -5px;
  }
  .btnbox {
    width: 450px;
    height: 50px;
    margin: 150px auto;
    display: flex;
    justify-content: space-between;
    .saves {
      width: 210px;
      height: 100%;
      img {
        width: 100%;
        height: 100%;
      }
    }
    .none {
      width: 210px;
      height: 100%;
      img {
        width: 100%;
        height: 100%;
      }
    }
  }
}
</style>
<style lang="less" scoped>
@media screen and (max-width: 1300px) {
  .add {
    .bbbox,
    .bcbox {
      height: 83vh !important;
      .add-title {
        width: 100px;
        height: 30px;
        margin-left: 10px;
        margin-top: 10px;
        // background-color: #00ccff !important;
      }
      .left-title {
        width: 70%;
        height: 30px;
        margin: 10px 0 10px 30px;
        display: flex;
        justify-content: space-between;
        .item {
          font-size: 12px;
          padding: 5px 15px;
          color: #fff;

          // background-color: aqua;
          text-align: center;
          cursor: pointer;
          overflow: hidden;
        }
      }
      .left-box {
        width: 97%;
        height: 120px;

        .box-item {
          width: 90px;
          height: 35px;
          text-align: center;
          line-height: 35px;
        }
      }
      .left-choose {
        width: 90%;
        height: 100px;
        margin: 5px 30px 0 20px;
        background: linear-gradient(
          0deg,
          rgba(209, 133, 66, 0.4),
          rgba(209, 147, 66, 0.05)
        );
        .ch-save {
          height: 65%;
        }
      }
      /deep/ .el-input {
        width: 200px;
        margin-top: 10px;
      }
      // 修改输入框样式
      /deep/ .el-input__inner {
        height: 30px;
        font-size: 14px;
      }
      /deep/ input::placeholder {
        font-size: 14px;
      }
      .btnbox {
        width: 350px;
        height: 45px;
        margin: 20px auto 0;
        .saves,
        .none {
          width: 160px;
        }
      }
    }
  }
}
</style>
